<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>快乐运动</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="../../bower_components/morris.js/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="../../bower_components/jvectormap/jquery-jvectormap.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="../../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <script src="../../js/axios.min.js"></script>
    <script src="../../js/vue.js"></script>
    <script src="../../js/zpageNav.js"></script>
    <link rel="stylesheet" href="../../css/zpageNav.css">
    <script src="../../js/course.js"></script>
    <script src="../../js/schedule.js"></script>

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper" id="schedule">

    <header class="main-header">
        <!-- Logo -->
        <a href="../../index.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>快乐运动</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>快乐运动</b></span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- Messages: style can be found in dropdown.less-->
                    <li class="dropdown messages-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="label label-success">4</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">公告</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <li><!-- start message -->
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                【线上培训】
                                                <small><i class="fa fa-clock-o"></i> 12月6号</small>
                                            </h4>
                                            <p>玩转工作室 so easy</p>
                                        </a>
                                    </li>
                                    <!-- end message -->
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                【线上培训】
                                                <small><i class="fa fa-clock-o"></i> 12月5号</small>
                                            </h4>
                                            <p>开始啦。。。</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                年终大促销
                                                <small><i class="fa fa-clock-o"></i> 12月6号</small>
                                            </h4>
                                            <p>惊喜连连。。。</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                【重要提醒】
                                                <small><i class="fa fa-clock-o"></i> 12月5号</small>
                                            </h4>
                                            <p>动感单车开课了</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
                                            </div>
                                            <h4>
                                                【重要提示】
                                                <small><i class="fa fa-clock-o"></i> 12月5号</small>
                                            </h4>
                                            <p>我们是最好的</p>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li class="footer"><a href="../../pages/notice/list.html">查看全部</a></li>
                        </ul>
                    </li>

                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">wt运动</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                <p>
                                    快乐运动
                                    <small>13800138000</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <li class="user-body">
                                <div class="row">
                                    <!--
                                      <div class="col-xs-4 text-center">
                                        <a href="editbrand.html">品牌设置</a>
                                      </div>
                                      <div class="col-xs-4 text-center">
                                        <a href="editpassword.html">修改密码</a>
                                      </div>
                                    -->
                                </div>
                                <!-- /.row -->
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">

                                <div class="pull-right">
                                    <a href="../../login.html" class="btn btn-default btn-flat">退 出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    <li>
                        <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header"><b>主 菜 单</b></li>
                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-gift"></i> <span>数据魔方</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/member/member.html"><i class="fa fa-circle-o"></i> 会员概况</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-ok"></i>
                        <span>预约签到</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/ordersign/order.html"><i class="fa fa-circle-o"></i> 预约管理</a></li>
                        <li><a href="../../pages/ordersign/sign.html"><i class="fa fa-circle-o"></i> 签到管理</a></li>
                        <li><a href="../../pages/ordersign/entrance.html"><i class="fa fa-circle-o"></i> 智能入场</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-king"></i>
                        <span>会员管理</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/member/allmember.html"><i class="fa fa-circle-o"></i> 全部会员</a></li>
                        <li><a href="../../pages/member/membercardbind.html"><i class="fa fa-circle-o"></i> 会员邦卡</a></li>
                        <li><a href="../../pages/member/setcard.html"><i class="fa fa-circle-o"></i> 设置会员卡</a></li>
                    </ul>
                </li>
                <li class="treeview active">
                    <a href="#">
                        <i class="glyphicon glyphicon-book"></i>
                        <span>课程管理</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li class="active"><a href="../../pages/course/group.html"><i class="fa fa-circle-o"></i> 团课管理</a></li>
                        <li><a href="private.html"><i class="fa fa-circle-o"></i> 私教管理</a></li>
                        <li><a href="../../pages/course/evaluation.html"><i class="fa fa-circle-o"></i> 评价管理</a></li>

                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-th"></i> <span>统计报表</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/tables/income.html"><i class="fa fa-circle-o"></i> 营收报表</a></li>
                        <li><a href="../../pages/tables/course.html"><i class="fa fa-circle-o"></i> 课程报表</a></li>
                        <li><a href="../../pages/tables/card.html"><i class="fa fa-circle-o"></i> 会员卡报表</a></li>
                        <li><a href="../../pages/tables/emp.html"><i class="fa fa-circle-o"></i> 员工报表</a></li>
                        <li><a href="../../pages/tables/salary.html"><i class="fa fa-circle-o"></i> 薪资报表</a></li>

                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-user"></i> <span>员工设置</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/employee/coach.html"><i class="fa fa-circle-o"></i> 工作人员</a></li>
                        <li><a href="../../pages/employee/course.html"><i class="fa fa-circle-o"></i> 教练</a></li>
                        <li><a href="../../pages/employee/card.html"><i class="fa fa-circle-o"></i> 员工请假</a></li>
                        <li><a href="../../pages/employee/emp.html"><i class="fa fa-circle-o"></i> 薪资设置</a></li>

                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="glyphicon glyphicon-leaf"></i> <span>场馆设置</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="../../pages/venue/edit.html"><i class="fa fa-circle-o"></i> 场馆编辑</a></li>
                        <li><a href="../../pages/venue/photo.html"><i class="fa fa-circle-o"></i> 场馆相册</a></li>

                    </ul>
                </li>

                <li>
                    <a href="../../pages/service/service.html">
                        <i class="glyphicon glyphicon-asterisk"></i> <span>系统设置</span>
                        <span class="pull-right-container">
              <small class="label pull-right bg-green">sys</small>
            </span>
                    </a>
                </li>

            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" >
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                课程列表
                <small>课程管理 / 课程列表</small>
            </h1>

        </section>

        <!-- Main content -->
        <section class="content">

            <!-- Main row -->
            <div class="row">
                <!-- Left col -->
                <section class="col-lg-12 connectedSortable">
                    <!-- quick email widget -->
                    <div class="box box-info">
                        <div class="box-header">
                            <i class="fa fa-user"></i>

                            <h3 class="box-title">课程列表</h3>
                        </div>

                        <!-- Custom Tabs -->
                        <div class="nav-tabs-custom">
                            <ul class="nav nav-tabs">
                                <li class="active"><a href="#tab_member1" data-toggle="tab">团课课表</a></li>
                                <li><a href="#tab_member2" data-toggle="tab">团课课程</a></li>
                            </ul>
                            <div class="tab-content">

                                <div class="tab-pane active" id="tab_member1">
                                    <!-- Main content -->
                                    <section class="content">
                                        <!-- Small boxes (Stat box) -->

                                        <!-- Main row -->
                                        <div class="row">
                                            <!-- /.col-lg-2 -->
                                            <div class="col-lg-2">
                                                <!-- select -->
                                                <div class="input-group" style="width: 100%;">
                                                    <select class="form-control" style="width: 100%;" v-model="qteacher">
                                                        <option selected="selected" value="0">全部教练</option>
                                                        <option v-for="teacher in teachers" v-bind:value="teacher.staffId" v-text="teacher.staffName"></option>
                                                    </select>
                                                </div>
                                                <!-- /.form group -->
                                            </div>
                                            <div class="col-lg-2">
                                                <!-- select -->
                                                <div class="input-group" style="width: 100%;">
                                                    <select class="form-control" style="width: 100%;" v-model="qLocation" v-on:change="chaxun">
                                                        <option selected="selected" value="0">全部场馆</option>
                                                        <option v-for="region in regions" v-bind:value="region.tregionId" v-text="region.tregionName"></option>
                                                    </select>
                                                </div>
                                                <!-- /.form group -->
                                            </div>
                                            <!-- /.col-lg-2 -->
                                            <div class="col-lg-2">
                                                <!-- select -->
                                                <div class="input-group" style="width: 100%;">
                                                    <select class="form-control" style="width: 100%;" v-model="qSpace">
                                                        <option selected="selected" value="0">全部场地</option>
                                                        <option v-for="classRoom in classRooms" v-bind:value="classRoom.crId" v-text="classRoom.crName"></option>
                                                    </select>
                                                </div>
                                                <!-- /.form group -->
                                            </div>
                                            <!-- /.col-lg-2 -->
                                            <div class="col-lg-2">
                                                <!-- select -->
                                                <div class="input-group" style="width: 100%;">
                                                    <select class="form-control" style="width: 100%;" v-model="qCourse">
                                                        <option selected="selected" value="0">全部课程</option>
                                                        <option v-for="course in courses" v-bind:value="course.coId" v-text="course.coName"></option>
                                                    </select>
                                                </div>
                                                <!-- /.form group -->
                                            </div>
                                            <!-- /.col-lg-1 -->
                                            <div class="col-lg-1">
                                                <div class="input-group" style="width: 100%;">
                                                    <select class="form-control" style="width: 100%;" v-model="qTime">
                                                        <option selected="selected" value="0">全天</option>
                                                        <option v-for="time in times" v-bind:value="time.tiId" v-text="time.tiTime"></option>
                                                    </select>
                                                </div>
                                                <!-- /input-group -->
                                            </div>
                                            <!-- /.col-lg-2 -->
                                            <div class="col-lg-2">
                                                <div class="input-group" style="width: 100%;">
                                                    <div class="input-group-addon">
                                                        <i class="fa fa-calendar"></i>
                                                    </div>
                                                    <input type="text" class="form-control pull-right" id="reservation">
                                                </div>
                                                <!-- /input-group -->
                                            </div>
                                            <!-- /.col-lg-1 -->
                                            <div class="col-lg-1">
                                                <div class="input-group">
                                                    <button type="button" class="btn btn-block btn-primary" @click="tj">搜索</button>

                                                </div>
                                                <!-- /input-group -->
                                                <a href="schedulearrange.html">
                                                    <button type="button" class="btn  btn-success">+安排课程</button>
                                                </a>
                                            </div>
                                            <!-- /.col-lg-1 -->
                                        </div>
                                        <!-- /.row (main row) -->
                                        <!--second row-->
                                        <div class="row">
                                            <arrange v-bind:messages="messages" v-on:chuancan="chuandi"></arrange>
                                        </div>
                                        <!-- /.row (second row) -->
                                        <!--three row-->
                                        <div class="row">
                                            <div class="box-footer clearfix">
                                                <zpagenav :page="page" :page-size="pageSize" :total="total" :max-page="maxPage" v-on:pagehandler="pageHandler"></zpagenav>
                                            </div>
                                        </div>
                                        <!-- /.row (three row) -->
                                    </section>
                                    <!-- /.content -->
                                </div>
                                <!-- /.tab-pane -->
                                <div class="tab-pane" id="tab_member2">
                                    <!-- Main content -->
                                    <section class="content">
                                        <!-- Small boxes (Stat box) -->

                                        <!-- Main row -->
                                        <div class="row">
                                            <!-- /.col-lg-2 -->
                                            <div class="col-lg-8">
                                                <div class="input-group pull-right">
                                                    <a href="courseadd.html">
                                                        <button type="button" class="btn  btn-success">+团课课程</button>
                                                    </a>
                                                </div>
                                                <!-- /input-group -->
                                            </div>
                                            <!-- /.col-lg-8 -->
                                        </div>
                                        <!-- /.row (main row) -->
                                        <!--second row-->
                                        <div class="row">
                                            <info v-bind:course-infos="courseInfos" v-on:chuancan="chuandi"></info>
                                        </div>
                                        <!-- /.row (second row) -->
                                        <!--three row-->
                                        <div class="row">
                                            <div class="box-footer clearfix">
                                                <zpagenav :page="cpage" :page-size="cpageSize" :total="ctotal" :max-page="cmaxPage" v-on:cpagehandler="cpageHandler"></zpagenav>
                                            </div>
                                        </div>
                                        <!-- /.row (three row) -->
                                    </section>
                                    <!-- /.content -->
                                </div>
                            </div>
                            <!-- /.tab-content -->
                        </div>
                        <!-- nav-tabs-custom -->

                    </div>
                </section>
                <!-- /.Left col -->
            </div>
            <!-- /.row (Second row) -->
        </section>
        <!-- /.content -->

    </div>
    <!-- /.content-wrapper -->
    <!--删除的modal框-->
    <div class="modal modal-danger fade" id="modal-danger">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">删除</h4>
                </div>
                <div class="modal-body">
                    <p>确认删除数据&hellip;</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-outline" v-on:click="del_info" data-dismiss="modal">删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>




    <!-- /.modal 删除的modal框结束 -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0.0
        </div>
        <strong>Copyright &copy; 2017-2018 <a href="http://www.tedu.cn">XX科技</a>.</strong> All rights
        reserved.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">

        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab">全部</a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab">预约</a></li>
            <li><a href="#control-sidebar-pay-tab" data-toggle="tab">付费</a></li>
            <li><a href="#control-sidebar-system-tab" data-toggle="tab">系统</a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane active" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">最新通知</h3>
                <ul class="control-sidebar-menu">

                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>

                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>万事具备，只差会员，请您开始添加会员吧！</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>课程添加好了，放到课程表内，会员才可以约课哦：团课排期，私教排期</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>该开始添加课程了：添加团课课程，添加私教课程</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>现在，设置一下我们的专属会员卡吧：添加会员卡类别</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>好了，现在可以添加我们的员工和教练了：添加员工</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-settings-tab">
                预约暂无内容
            </div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-pay-tab">
                付费暂无内容
            </div>
            <!-- /.tab-pane -->
            <!-- Home tab content -->
            <div class="tab-pane" id="control-sidebar-system-tab">
                <h3 class="control-sidebar-heading">最新通知</h3>
                <ul class="control-sidebar-menu">

                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>

                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>万事具备，只差会员，请您开始添加会员吧！</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>课程添加好了，放到课程表内，会员才可以约课哦：团课排期，私教排期</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>该开始添加课程了：添加团课课程，添加私教课程</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>现在，设置一下我们的专属会员卡吧：添加会员卡类别</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">
                                    系统通知
                                    <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
                                </h4>

                                <p>好了，现在可以添加我们的员工和教练了：添加员工</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<script type="application/javascript">
    var schedule = new Vue({
        el:"#schedule",
        data:{
            flag:0,
            delFlag:0,
            delId:0,
            page:1,
            pageSize:30,
            total:2,
            maxPage:5,
            cpage:1,
            cpageSize:30,
            ctotal:2,
            cmaxPage:5,
            classRooms:
                [
                    {
                        crAddress: null,
                        crFlag: null,
                        crId: null,
                        crName: null,
                        crRemark: null,
                        reId: null
                    }
                ],
            regions:
                [
                    {
                        tregionAddress: null,
                        tregionEmail: null,
                        tregionFlag: null,
                        tregionId: null,
                        tregionImage: null,
                        tregionName: null,
                        tregionNo: null,
                        tregionPhone: null,
                        tregionRemark: null
                    }
                ],
            courses:
                [
                    {
                        coId:null,
                        coName:null,
                        coType:null,
                        coLocation:null,
                        coSpace:null,
                        coMaxstu:null,
                        coPrice:null,
                        coOncetime:null,
                        coImage:null,
                        coDescribe:null,
                        coBeizhu:null
                    }
                ],
            teachers:
                [
                    {
                        staffId:null,
                        staffName:null,
                        staffGender:null,
                        staffTel:null,
                        staffJob:null,
                        staffPower:null,
                        stadium:null,
                        isLogin:null,
                        staffState:null
                    }
                ],
            times:
                [
                    {
                        tiId:null,
                        tiTime:null
                    }
                ],
            qTime:0,
            qLocation:0,
            qSpace:0,
            qteacher:0,
            qCourse:0,
            messages:[
                {
                    "course":{
                        coId:null,
                        coName:null,
                        coType:null,
                        coMaxstu:null,
                        coPrice:null,
                        coOncetime:null,
                        coImage:null,
                        coDescribe:null,
                        coBeizhu:null
                    },
                    "teacher":
                        {
                            staffId:null,
                            staffName:null,
                            staffGender:null,
                            staffTel:null,
                            staffJob:null,
                            staffPower:null,
                            stadium:null,
                            isLogin:null,
                            staffState:null
                        },
                    "time":{
                        tiId:null,
                        tiTime:null
                    },
                    "date":null,
                    "location": {
                        tregionId:null,
                        tregionName:null,
                        tregionPhone:null,
                        tregionAddress:null,
                        tregionNo:null,
                        tregionEmail:null,
                        tregionRemark:null,
                        tregionImage:null,
                        tregionFlag:null
                    },
                    "space": {
                        crId:null,
                        crName:null,
                        crAddress:null,
                        crFlag:null,
                        reId:null,
                        crRemark:null
                    },
                    "arrangeId":null
                }
            ],

            courseInfos:[
                {
                    "course":{
                        coBeizhu: null,
                        coDescribe: null,
                        coId: null,
                        coImage: null,
                        coMaxstu: null,
                        coName: null,
                        coOncetime: null,
                        coPrice: null,
                        coType: null
                    },
                    "teacher":
                        {
                            isLogin: null,
                            stadium: null,
                            staffGender: null,
                            staffId: null,
                            staffJob: null,
                            staffName: null,
                            staffPower: null,
                            staffState: null,
                            staffTel: null
                        },
                    "arrangeId":null,
                }
            ]
        },
        created(){
            let data = new FormData();
            data.append("pageNum",1);
            data.append("pageSize",5);
            axios.post("/getTuankeSchedule",data).
            then(function (res) {
                console.log("课程表为：");
                console.log(res.data);
                schedule.messages = res.data.records;
                schedule.total = res.data.total;
                schedule.pageSize = res.data.size;
                schedule.maxPage = res.data.pages;
                schedule.page = res.data.current;
            });
            axios.post("/getCourseInfo",data).
            then(function(res){
                console.log("课程为：");
                console.log(res.data);
                schedule.courseInfos = res.data.records;
                schedule.ctotal = res.data.total;
                schedule.cpageSize = res.data.size;
                schedule.cmaxPage = res.data.pages;
                schedule.cpage = res.data.current;
            });
            axios.get("/getTuanke").
            then(function (res) {
                schedule.courses = res.data;
            });
            axios.get("/getAllTeacher").
            then(function(res){
                schedule.teachers = res.data;
            });
            axios.get("/getTime").
            then(function(res){
                schedule.times = res.data;
            });
            axios.get("/getRegion").
            then(function(res){
                schedule.regions = res.data;
            })
        },
        methods:{
            tj:function(event){
                schedule.flag = 1;
                let data = new FormData();
                data.append("time",schedule.qTime);
                data.append("location",schedule.qLocation);
                data.append("space",schedule.qSpace);
                data.append("teacher",schedule.qteacher);
                data.append("course",schedule.qCourse);
                data.append("duringTime",document.getElementById("reservation").value);
                data.append("pageNum",1);
                data.append("pageSize",5);
                axios.post("/conditionQueryTuanke",data).
                then(function(res){
                    console.log("条件查询团课课程为：");
                    console.log(res);
                    schedule.messages = res.data.records;
                    schedule.total = res.data.total;
                    schedule.pageSize = res.data.size;
                    schedule.maxPage = res.data.pages;
                    schedule.page = res.data.current;
                })
            },

            del_info:function(){
                if(schedule.delFlag == 1){
                    let data = new FormData();
                    data.append("delFlag",schedule.delFlag);
                    data.append("delId",schedule.delId);
                    axios.post("/deleteSchedule",data).
                    then(function(res){
                       console.log(res.data);
                       if(res.data == true){
                           schedule.pageHandler(schedule.page);
                       }else{
                           alert("删除失败");
                       }
                    });
                }else if(schedule.delFlag == 2){
                    let data = new FormData();
                    data.append("delFlag",schedule.delFlag);
                    data.append("delId",schedule.delId);
                    axios.post("/deleteCourse",data).
                    then(function(res){
                        console.log(res.data);
                        if(res.data == true){
                            axios.get("/getCourseInfo").
                            then(function(res){
                                console.log("课程信息");
                                console.log(res);
                                schedule.courseInfos = res.data;
                            });
                        }else{
                            alert("删除失败");
                        }
                    });
                }
            },

            chuandi:function(delFlag,delId){
                console.log("参数为：" + delId);
                console.log("标记为：" + delFlag);
                schedule.delId = delId;
                schedule.delFlag = delFlag;
            },

            chaxun:function(event){
                schedule.classRooms = '';
                let data = new FormData();
                data.append("reId",schedule.qLocation)
                axios.post("/getClassRoom",data).
                then(function(res){
                    schedule.classRooms = res.data;
                })
            },

            cpageHandler:function(pageNumber){
                let data = new FormData();
                data.append("cpageNum",pageNumber);
                data.append("cpageSize",this.cpageSize);
                axios.post("/getCourseInfo",data).
                then(function (res) {
                    console.log(res);
                    schedule.courseInfos = res.data.records;
                    schedule.ctotal = res.data.total;
                    schedule.cpageSize = res.data.size;
                    schedule.cmaxPage = res.data.pages;
                    schedule.cpage = res.data.current;
                });
            },

            pageHandler:function(pageNumber){
                if(schedule.flag == 0){
                    let data = new FormData();
                    data.append("pageNum",pageNumber);
                    data.append("pageSize",this.pageSize);
                    axios.post("/getTuankeSchedule",data).
                    then(function (res) {
                        console.log(res);
                        schedule.messages = res.data.records;
                        schedule.total = res.data.total;
                        schedule.pageSize = res.data.size;
                        schedule.maxPage = res.data.pages;
                        schedule.page = res.data.current;
                    });
                }else if(schedule.flag == 1){
                    let data = new FormData();
                    data.append("time",schedule.qTime);
                    data.append("location",schedule.qLocation);
                    data.append("space",schedule.qSpace);
                    data.append("teacher",schedule.qteacher);
                    data.append("course",schedule.qCourse);
                    data.append("duringTime",document.getElementById("reservation").value);
                    data.append("pageNum",pageNumber);
                    data.append("pageSize",this.pageSize);
                    axios.post("/conditionQueryTuanke",data).
                    then(function(res){
                        schedule.messages = res.data.records;
                        schedule.total = res.data.total;
                        schedule.pageSize = res.data.size;
                        schedule.maxPage = res.data.pages;
                        schedule.page = res.data.current;
                    });
                }
            }
        }
    });


</script>

<!-- jQuery 3 -->
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../../bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Select2 -->
<script src="../../bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- Morris.js charts -->
<script src="../../bower_components/raphael/raphael.min.js"></script>
<script src="../../bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="../../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="../../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="../../bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="../../bower_components/moment/min/moment.min.js"></script>
<script src="../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- date-range-picker -->
<script src="../../bower_components/moment/min/moment.min.js"></script>
<script src="../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- DataTables -->
<script src="../../bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../../bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- Slimscroll -->
<script src="../../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="../../bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<!--<script src="dist/js/demo.js"></script>-->
<script>
    $(function () {
        //Date range picker
        $('#reservation').daterangepicker()
    })
</script>
</body>
</html>
